home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / amiga_system / the_aminet / util / cdity / ascs35.lha / ascsend / NON-MUI / ASCSEND-Source / ascsend.h < prev    next >
C/C++ Source or Header  |  1995-06-19  |  3KB  |  100 lines

  1.  
  2. #include <clib/alib_protos.h>
  3. #include <exec/exec.h>
  4. #include <exec/lists.h>
  5. #include <exec/nodes.h>
  6. #include <stdio.h>
  7. #include <exec/types.h>
  8. #include <intuition/intuition.h>
  9. #include <intuition/intuitionbase.h>
  10. #include <libraries/gadtools.h>
  11. #include <libraries/asl.h>
  12. #include <libraries/commodities.h>
  13. #include <devices/input.h>
  14. #include <dos.h>
  15. #include <dos/dos.h>
  16. #include <proto/dos.h>
  17. #include <proto/exec.h>
  18. #include <proto/intuition.h>
  19. #include <proto/gadtools.h>
  20. #include <proto/utility.h>
  21. #include <proto/icon.h>
  22. #include <proto/asl.h>
  23. #include <proto/commodities.h>
  24. #include <string.h>
  25. #include <stdlib.h>
  26. #include <workbench/startup.h>
  27. #include <workbench/icon.h>
  28. #include <pragmas/dos_pragmas.h>
  29. #include <pragmas/icon_pragmas.h>
  30. #include <pragmas/exec_pragmas.h>
  31. #include <pragmas/intuition_pragmas.h>
  32. #include <pragmas/gadtools_pragmas.h>
  33. #include <pragmas/utility_pragmas.h>
  34. #include <pragmas/commodities_pragmas.h>
  35. #include <pragmas/asl_pragmas.h>
  36.  
  37.  
  38. #define STRINGSIZE 256
  39. #define ASCSEND_VERSION "$VER: ASC_SEND 1.14 "__DATE__" "__TIME__
  40. #define HOTKEY_BASE  3
  41. #define RETURN_QUIT  0
  42. #define RETURN_STOP  1
  43. #define RETURN_IS_OK 2
  44.  
  45. #define  MODE_CHANGE   0
  46. #define  MODE_NEW      1
  47. #define  GET_A_FILE    0
  48. #define  GET_A_STRING  1
  49.  
  50. #define  my_AddIEvents(ie) {s_HandlerIO->io_Data    = (APTR)ie;  DoIO((struct IORequest *)s_HandlerIO);}
  51.  
  52.  
  53.  
  54. #define IE_COUNT       40
  55.  
  56. struct action 
  57.        {
  58.         CxObj            *key;
  59.         CxObj            *sender;
  60.         CxObj            *translate;
  61.         UBYTE             hotkey[STRINGSIZE];           
  62.         UBYTE             file [STRINGSIZE];
  63.     LONG              id;
  64.        };
  65.        
  66. struct a_node
  67.        {
  68.     struct Node   an_Node;
  69.     struct action an_action;
  70.        };
  71. /*--------------------------------------------------------*/
  72.  
  73. extern  struct NewBroker  newbroker;
  74. extern  CxObj            *broker;  
  75. extern  struct List       actions; 
  76.  
  77. extern struct IntuitionBase *IntuitionBase;
  78. extern struct GfxBase       *GfxBase;
  79. extern struct Library       *UtilityBase;
  80. extern struct Library       *IconBase;
  81. extern struct Library       *AslBase;
  82. extern struct Library       *CxBase;
  83.  
  84. extern void __stdargs main(int argc,char **argv);
  85. extern int            OpenBroker(int argc, char **argv);
  86. extern void           CloseBroker(void);
  87. extern struct a_node *MakeActionNode(UBYTE *key,UBYTE *file, LONG id);
  88. extern void           RemActionNode(struct a_node *node);
  89. extern int            HandleBroker(void);
  90. extern struct a_node *Findentry(LONG id);
  91. extern int            showrequest(void);
  92.  
  93. extern UBYTE      __regargs *makemem(ULONG size);
  94. extern void                  releasemem(void *mem);
  95. extern UBYTE __regargs *getfilebuffer(UBYTE *filename,ULONG mode);
  96. extern void  __regargs freefilebuffer(UBYTE *buffer,ULONG size);
  97. extern BOOL  __regargs getnextchar(UBYTE *buffer,UBYTE *where);
  98. extern long  __regargs  Sendfile(UBYTE *filename,ULONG mode);
  99. extern LONG            makeIHandler(void);
  100. extern void            remIHandler(void);